obj-m := workqueue_test.o  # 定义要编译的模块

KERNELDIR := /lib/modules/$(shell uname -r)/build  # 当前内核的构建目录
PWD := $(shell pwd)  # 当前路径

# 默认目标，编译内核模块
default:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

# 清理目标，清理编译文件
clean:
	-rm *.mod.c *.o *.order *.symvers *.ko
